package me.spring.cloud.common.components.rpc.request;

import javax.validation.Valid;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.spring.cloud.common.components.rpc.request.header.ReqHeader;

/**
 * 通用请求
 * @author luffy
 * @date 2018/7/18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonRequest<H extends ReqHeader,T> implements Request<H,T> {

  private static final long serialVersionUID = 1868008369148766335L;
  /** 请求头 */
  private H header;

  /** 请求体 */
  @Valid
  private T body;
}